package com.zhiyou.crud.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
//项目详细信息
public class Project {
    @Id
    private Integer pno;//编号
    private String ptitle;//标题
    private String pstory;//故事
    private String psite;//项目地点
    private String plable;//自定义标签
    private String pother;//其他
    private Integer ptarget;//目标金额
    private Integer praise;//已筹基金
    private Integer pdays;//筹资天数
    private String psubmittime;//提交时间
    private String pstarttime;//开始时间
    private Integer pstatus;//项目审核状态
    private Integer uno;//发起人编号
    private Integer tno;//类型编号
    private Integer pisre;//是否推荐
    private String urlpicture;//封面的地址
    private String urlvideo;//视频的地址


    /**
     *
     * 冲冲添加的属性
     */
    private User user;
    @Transient
    private String uname;
    @Transient
    private String tname;
    private Real real;

    private List<Comment>comments;
    private List<Donate> donates;

}
